home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
398
/
398.xpi
/
chrome
/
forecastfox.jar
/
content
/
icons
/
icon-item.js
next >
Wrap
Text File
|
2010-02-04
|
2KB
|
59 lines
/*------------------------------------------------------------------------------
Copyright (c) 2008 Ensolis, LLC. All Rights Reserved.
----------------------------------------------------------------------------*/
/******************************************************************************
* Interface for describing an icon pack image. The component that
* implements this interface should not be called directly, but instead
* gotten from the pack interface.
*
* @status FROZEN
* @version 1.0
******************************************************************************/
function IconItem()
{
this._properties = {};
}
IconItem.prototype = {
__proto__: new ItemBase("IconItem"),
////////////////////////////////
// ffIIconItem
/**
* Unique ID of the icon. Combination of its index and
* size properties. Seperated with a hyphen.
*/
get ID() { return this.index + "-" + this.size; },
/**
* URL to the specific image.
*/
get URL() { return this.getProperty("URL"); },
/**
* Width of the image.
*/
get width() { return this.getProperty("width"); },
/**
* Height of the image.
*/
get height() { return this.getProperty("height"); },
/**
* Size of the icon (large/small).
*/
get size() { return this.getProperty("size"); },
/**
* Index of the image. Index returned by the webservice to describe
* the weather conditions.
*/
get index() { return this.getProperty("index"); },
/**
* Image is an exemption icon.
*/
get isExemption() { return this.getProperty("isExemption"); }
};